package com.ruoyi.project.stop.mapper;

import java.util.List;

import com.ruoyi.project.stop.domain.Remove;
import com.ruoyi.project.stop.domain.SensorRecord;
import com.ruoyi.project.stop.domain.SensorRecordVO;

/**
 * 传感器数据记录Mapper接口
 *
 * @author ruoyi
 * @date 2025-02-26
 */
public interface SensorRecordMapper
{
    /**
     * 查询传感器数据记录
     *
     * @param id 传感器数据记录主键
     * @return 传感器数据记录
     */
    public SensorRecord selectSensorRecordById(Long id);

    /**
     * 查询传感器数据记录列表
     *
     * @param sensorRecord 传感器数据记录
     * @return 传感器数据记录集合
     */
    public List<SensorRecord> selectSensorRecordList(SensorRecord sensorRecord);

    public List<SensorRecord> selectSensorRecordListNew(SensorRecordVO sensorRecordVO);

    /**
     * 新增传感器数据记录
     *
     * @param sensorRecord 传感器数据记录
     * @return 结果
     */
    public int insertSensorRecord(SensorRecord sensorRecord);

    public int insertSensorRecordByTime(SensorRecordVO sensorRecordVO);

    /**
     * 修改传感器数据记录
     *
     * @param sensorRecord 传感器数据记录
     * @return 结果
     */
    public int updateSensorRecord(SensorRecord sensorRecord);

    /**
     * 删除传感器数据记录
     *
     * @param id 传感器数据记录主键
     * @return 结果
     */
    public int deleteSensorRecordById(Long id);

    /**
     * 批量删除传感器数据记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSensorRecordByIds(String[] ids);

    public int deleteSensorRecordByIdsAndTime(Remove remove);
}
